import request from "@/utils/request.js";

export const getUnderwayApproval = (id,approvalName,pageNo,pageSize,type) => {
    return request.get('/commonProcess/underwayApproval', {
        params: {
            id:id,
            approvalName: approvalName,
            pageNo,
            pageSize,
            type:type
        }
    });
};

export const updateApproval = (id,configData) => {
    const formData = new FormData();
    formData.append('id', id);
    formData.append('configData', configData);
    return request.patch('/commonProcess/updateApproval', formData);
};
